package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.AerichMapper;
import com.ruoyi.yipaiju.domain.Aerich;
import com.ruoyi.yipaiju.service.IAerichService;

/**
 * fo_aerichService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class AerichServiceImpl implements IAerichService 
{
    @Autowired
    private AerichMapper aerichMapper;

    /**
     * 查询fo_aerich
     * 
     * @param id fo_aerich主键
     * @return fo_aerich
     */
    @Override
    public Aerich selectAerichById(Long id)
    {
        return aerichMapper.selectAerichById(id);
    }

    /**
     * 查询fo_aerich列表
     * 
     * @param aerich fo_aerich
     * @return fo_aerich
     */
    @Override
    public List<Aerich> selectAerichList(Aerich aerich)
    {
        return aerichMapper.selectAerichList(aerich);
    }

    /**
     * 根据业务主键查询一条记录：fo_aerich
     *
     * @param aerich fo_aerich
     * @return fo_aerich
     */
    @Override
    public Aerich selectOneAerich(Aerich aerich)
    {
        return aerichMapper.selectOneAerich(aerich);
    }

    /**
     * 新增fo_aerich
     * 
     * @param aerich fo_aerich
     * @return 结果
     */
    @Override
    public int insertAerich(Aerich aerich)
    {
        return aerichMapper.insertAerich(aerich);
    }

    /**
     * 修改fo_aerich
     * 
     * @param aerich fo_aerich
     * @return 结果
     */
    @Override
    public int updateAerich(Aerich aerich)
    {
        return aerichMapper.updateAerich(aerich);
    }

    @Override
    public int updateAerichCondition(Aerich aerich, Aerich aerichCondition)
    {
        return aerichMapper.updateAerichCondition(aerich, aerichCondition);
    }

    /**
     * 批量删除fo_aerich
     * 
     * @param ids 需要删除的fo_aerich主键
     * @return 结果
     */
    @Override
    public int deleteAerichByIds(Long[] ids)
    {
        return aerichMapper.deleteAerichByIds(ids);
    }

    /**
     * 删除fo_aerich信息
     * 
     * @param id fo_aerich主键
     * @return 结果
     */
    @Override
    public int deleteAerichById(Long id)
    {
        return aerichMapper.deleteAerichById(id);
    }

    /**
     * 条件删除fo_aerich
     *
     * @param aerich fo_aerich
     * @return 结果
     */
    @Override
    public int deleteAerichByCondition(Aerich aerich)
    {
        return aerichMapper.deleteAerichByCondition(aerich);
    }

}
